package com.springboot.hotel.controller;

import com.springboot.hotel.model.SysUser;
import com.springboot.hotel.service.impl.SysUserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

//房务管理（打扫）
@RestController
public class HouseKeepingController {
    @Autowired
    SysUserServiceImpl service;
    @GetMapping("/hotelService/HouseKeeping")
    public ModelAndView CustInfoMgmt(ModelAndView mv){
        List<SysUser> dataList = service.list();
        mv.addObject("dataList",dataList);
        return mv;
    }
}
